package com.fulihui.information.dal.mapper;

import com.fulihui.information.dal.dataobj.CountUpdate;
import com.fulihui.information.dal.dataobj.InfoContent;
import com.fulihui.information.dal.dataobj.InfoContentExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Willard.Hu on 2016/12/27 0027.
 */
public interface ExtInfoContentListItemMapper {

    List<InfoContent> selectListItemPage(@Param("example") InfoContentExample example,
                                         @Param("start") int start, @Param("rows") int rows);

    Long selectListItemCount(@Param("example") InfoContentExample example);

    List<InfoContent> selectListItems(@Param("example") InfoContentExample example);

    List<InfoContent> selectListItemByIds(@Param("ids") List<String> ids);

    InfoContent selectListItemById(@Param("id") String id);

    void batchUpdateCount(@Param("list") List<CountUpdate> list);
}
